﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

using AMT.Azure.Storage;

namespace AMT.Azure.Tests
{
	[TestClass]
	public class Metric_Types
	{
		private MetricsCapacityEntity metricsCapacity = new MetricsCapacityEntity();
		private MetricsTransactionsEntity metricsXacts = new MetricsTransactionsEntity();

		[TestMethod]
		public void VerifyConstants()
		{
			Assert.IsTrue(Helper.IsNotNullOrEmpty(Constants.BlobCapacityMetricsTableName));
			Assert.IsTrue(Helper.IsNotNullOrEmpty(Constants.BlobTransactionMetricsTableName));
			Assert.IsTrue(Helper.IsNotNullOrEmpty(Constants.QueueTransactionMetricsTableName));
			Assert.IsTrue(Helper.IsNotNullOrEmpty(Constants.TableTransactionMetricsTableName));
		}

		[TestMethod]
		public void VerifyVersions()
		{
			Assert.AreEqual(1.0F, Constants.Version);
			Assert.AreEqual(1.0F, metricsCapacity.Version);
			Assert.AreEqual(1.0F, metricsXacts.Version);
		}

	}
}
